{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>输入你的github，gitee，coding.net账号</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="signin.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="container">

      <form class="form-signin" action="{% url 'gitacc:account_operation' %}" method="post">
        {% csrf_token %}
        <h2 class="form-signin-heading">请输入你的github，gitee，coding.net账号</h2>
        {% if error %}
        <h4 style="color:red;">{{error}}</h4>
        {% endif %}
        
        {% if suc %}
        <h4 style="color:blue;">{{suc}}</h4>
        {% endif %}
        <label for="inputName" class="sr-only">姓名</label>
        <input type="text" id="inputName" name="username" class="form-control" placeholder="你的真实完整姓名" required autofocus>
        <label for="inputGithub" class="sr-only">GitHub账号</label>
        <input type="text" id="inputGithub" name="githubacc" class="form-control" placeholder="你的Github账号" required>
        <label for="inputGitee" class="sr-only">Gitee账号</label>
        <input type="text" id="inputGitee" name="giteeacc" class="form-control" placeholder="你的Gitee账号" required>
        <label for="inputCoding" class="sr-only">coding.net账号</label>
        <input type="text" id="inputCoding" name="codingacc" class="form-control" placeholder="你的coding.net账号" required>
        <div class="checkbox">
          <label>
            <input type="checkbox" value="remember-me"> Remember me
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">确定提交</button>
      </form>

    </div> <!-- /container -->


    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
